package GearCommands;

import Gear.Factory;
import Gear.Gear;

/**
 * Implementation of the user command startastracker.
 * Sets a gear program to run as a tracker (gear server).
 *
 * @author Rodrigo Martins Racanicci
 */
public class GearCommandStartAsTracker implements GearCommand {

    @Override
    public void execute(String[] args, Gear gear) {

        if (args.length > 1) throw new IllegalArgumentException("Too much arguments to copy command.");

        // Colocar servidor central para aceitar conexoes
        Factory.getInstance().getTracker().acceptConnections();

    }


}
